package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.ShopOrder;
import com.stlm2.dems.dao.ShopOrderDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

@Repository("shopOrderDao")
public class ShopOrderDaoImpl extends BaseDaoImpl<ShopOrder> implements ShopOrderDao {

    @Override
    public ShopOrder getByCode(String code) {
        return selectOne("getByCode",code);
    }

    @Override
    public ShopOrder getByIdForUpdate(Integer id) {
        return selectOne("getByIdForUpdate",id);
    }
}